<script language="javascript">
    
    function insertWizzard() {
		

            html = insertDatabaseTable();

            if (ifCkeditor()) {
                  insertText(html);
            } else {
                $("#editor").append(html);     
            }
            
  
            $('#dialogBox').dialog('close');	
		
	}
	
</script>

    
    <form action="" method="post" name="insertForm" id="insertForm">
	  <p>Tabelle</p>
	  <p>
	    <select name="tableFormular" id="tableFormular"  onchange="refreshData('/code/ajax/form_wizzard_tablefield.php?t='+$('#tableFormular').val(),'form_wizzard_tablefield');" table_list="">
	      <option value="[table]">[table]</option>
	      </select>
      </p>
<div ajax="true" name="form_wizzard_tablefield" id="form_wizzard_tablefield">
<div ifexist="[get:t]">    
      <ul  table_field_list="[get:t]" >
        <li>
          <label>
            <input type="checkbox" name="[field]" id="[field]" value="[field]" />
            [field]</label>
        </li>
      </ul>
      <p>Order by<br />
<label>
    <select name="selectOrderby" id="selectOrderby">
      <option value=""></option>
      <data table_field_list="[get:t]">
      <option value="[field]">[field]</option>
      </data>
          </select>
        </label>
      </p>
      <p>Limit<br>
        <label>
          <input type="text" name="edtLimit" id="edtLimit">
        </label>
      </p>
      
      
      
      <p>
        <label>
          <input type="checkbox" name="chkSearchengine" id="chkSearchengine">
          Suchmaschine</label>
        <br>
        <label>
          <input type="checkbox" name="chkPaging" id="chkPaging">
          Paging</label>
        <br>
        <label>
          <input type="checkbox" name="chkDelete" id="chkDelete">
          L&ouml;schen Funktion</label>
      </p>
      <p>
       <label> <input type="checkbox" name="chkNewEntry" id="chkNewEntry">
Neuer Eintrag</label><br>
<select name="listNewEntry" id="listNewEntry" table="page" orderby="titel">
  <option value="[_url]">[titel]</option>
</select>
      </p>
      <p>
        <label><input type="checkbox" name="chkEdit" id="chkEdit">
        Edit oder Einzel Ansicht Link </label>
        <br>
        <select name="listEdit" id="listEdit" table="page" orderby="titel">
          <option value="[_url]">[titel]</option>
        </select>
      </p>
      <p>
        <label>
          <input type="button" name="button" id="button" value="Tabelle einf&uuml;gen" onClick="insertWizzard();">
        </label>
      </p>
    </div>
    </div>
</form>    